/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.jr2tecnologia.model.persistence;

import br.com.jr2tecnologia.model.repository.BankAccountRepository;
import br.com.jr2tecnologia.model.repository.CarrierRepository;
import br.com.jr2tecnologia.model.repository.ClientPhoneRepository;
import br.com.jr2tecnologia.model.repository.CompanyRepository;
import br.com.jr2tecnologia.model.repository.ConfigRepository;
import br.com.jr2tecnologia.model.repository.CreditRepository;
import br.com.jr2tecnologia.model.repository.KeyResponseRepository;
import br.com.jr2tecnologia.model.repository.LoginRepository;
import br.com.jr2tecnologia.model.repository.ModemRepository;
import br.com.jr2tecnologia.model.repository.PageRepository;
import br.com.jr2tecnologia.model.repository.RoleRepository;
import br.com.jr2tecnologia.model.repository.SmsReceivedRepository;
import br.com.jr2tecnologia.model.repository.SmsSendRepository;
import javax.persistence.EntityManager;

/**
 *
 * @author ronildo
 */
public class DAOFactory {

    public static CompanyRepository getCompanyRepository(EntityManager em){
        return new CompanyDAO().setEntityManager(em);
    }

    public static LoginRepository getLoginRepository(EntityManager em){
        return new LoginDAO().setEntityManager(em);
    }

    public static RoleRepository getRoleRepository(EntityManager em){
        return new RoleDAO().setEntityManager(em);
    }

    public static PageRepository getPageRepository(EntityManager em){
        return new PageDAO().setEntityManager(em);
    }

    public static ClientPhoneRepository getClientPhoneRepository(EntityManager em){
        return new ClientPhoneDAO().setEntityManager(em);
    }

    public static SmsSendRepository getSmsSendRepository(EntityManager em){
        return new SmsSendDAO().setEntityManager(em);
    }

    public static SmsReceivedRepository getSmsReceivedRepository(EntityManager em){
        return new SmsReceivedDAO().setEntityManager(em);
    }

    public static CarrierRepository getCarrierRepository(EntityManager em){
        return new CarrierDAO().setEntityManager(em);
    }

    public static ConfigRepository getConfigRepository(EntityManager em){
        return new ConfigDAO().setEntityManager(em);
    }

    public static KeyResponseRepository getKeyResponseRepository(EntityManager em){
        return new KeyResponseDAO().setEntityManager(em);
    }

    public static ModemRepository getModemRepository(EntityManager em){
        return new ModemDAO().setEntityManager(em);
    }

    public static BankAccountRepository getBankAccountRepository(EntityManager em){
        return new BankAccountDAO().setEntityManager(em);
    }

    public static CreditRepository getCreditRepository(EntityManager em){
        return new CreditDAO().setEntityManager(em);
    }
}